<layout name="../../Admin/View/master"/>
<style>
    .current{
        padding: 3px 3px;
        background: #ccc;
        color: orangered;
    }
    .num{
        padding: 5px 5px;
    }
    .prev,.next{
        padding: 5px 5px;
        background: oldlace;
        color: blue;
    }
</style>
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
    <li><a href="index.html"><i class="fa fa-home"></i> Home</a></li>
    <li><a href="#">UI kit</a></li>
    <li><a href="#">Table</a></li>
    <li class="active">Datatable</li>
</ul>
<div class="m-b-md">
    <h3 class="m-b-none">货品列表</h3>
</div>
<!--<div class="btn-group" style="margin: 0px">-->
    <!--<a href="{:U('goods/product/add')}" class="btn btn-primary">添加货品</a>-->
<!--</div>-->
<div class="col-lg-6" style="margin-bottom: 30px;margin-left: 300px">
    <form action="" method="post">
        <div class="input-group">
            <div class="input-group-btn">
                <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"
                        aria-haspopup="true" aria-expanded="false">分类搜索 <span class="caret"></span></button>
                <ul class="dropdown-menu">
                    <foreach name="category" item="vo">
                        <li><a href="{:U('goods/lists/categorySearch',['cid'=>$vo['cid']])}">{$vo['cname']}</a></li>
                    </foreach>
                </ul>
            </div>
            <input type="text" name="gname" class="form-control" style="width: 200px">
            <input type="submit" class="form-control btn btn-success" style="width: 50px" value="搜索">
        </div>
    </form>
</div>
<table class="table table-hover">
    <thead>
    <tr>
        <th>货品编号</th>
        <th>商品名称</th>
        <th>属性</th>
        <th>库存</th>
        <th>价格</th>
        <th>销售量</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <foreach name="products" item="vo">
        <tr>
            <td>{$vo['pcid']}</td>
            <td>{$vo['gname']}</td>
            <td>{$vo['style']}</td>
            <td>{$vo['stock']}</td>
            <td>{$vo['extroprice']}</td>
            <td>{$vo['sales']}</td>
            <td>
                <div class="btn-group">
                    <a href="{:U('del',['pcid'=>$vo['pcid']])}" class="btn btn-danger">删除</a>
                </div>
            </td>
        </tr>
    </foreach>
    </tbody>
</table>
<div style="margin-left: 300px">{$page}</div>

